Add tracMask control option to tests to allow them to run quicker
[yaffs2.git] / direct / tests / yaffs_test.c
index 81eb1003b9fe321a8834c322ed447810d70f16ee..9b36e08399120c9c44174b8ed322abd31906ca7e 100644 (file)
@@ -190,7 +190,7 @@ int main(int argc, char **argv)
        signal(SIGBUS,bad_ptr_handler);
        signal(SIGABRT,bad_ptr_handler);
 #endif 
-       while ((ch = getopt(argc,argv, "bfilmn:ps:u"))
+       while ((ch = getopt(argc,argv, "bfilmn:ps:t:u"))
               != EOF)
                switch (ch) {
                case 's':
@@ -220,6 +220,9 @@ int main(int argc, char **argv)
                case 'n':
                        n_cycles = atoi(optarg);
                        break;
+               case 't':
+                       yaffs_traceMask = strtol(optarg,NULL,0);
+                       break;
                default:
                        BadUsage();
                        /* NOTREACHED */