Integrate abartlet's t_push_ucs2 test into test framework:
[samba.git] / source3 / torture / t_push_ucs2.c
index ca04394acce90b69ecfb2f9082677329a226f6b6..86ae1b9b6ca516812dec66515a903ea33932defb 100644 (file)
@@ -30,10 +30,14 @@ static int check_push_ucs2(const char *orig)
 int main(int argc, char *argv[])
 {
        int i, ret = 0;
-       
+
+       /* Needed to initialize character set */
+       lp_load("/dev/null", True, False, False);
+
        if (argc != 2) {
                fprintf(stderr, "usage: %s STRING1\n"
-                       "Converts a string, prints the results of strcmp\n",
+                       "Checks that a string translated UNIX->UCS2->UNIX is unchanged\n"
+                       "Should be always 0\n",
                        argv[0]);
                return 2;
        }