Просмотр исходного кода

unit-test-app: use '-' to show test history

houchenyao 8 лет назад
Родитель
Сommit
cb3c88fb2f
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      tools/unit-test-app/components/unity/unity_platform.c

+ 6 - 0
tools/unit-test-app/components/unity/unity_platform.c

@@ -342,6 +342,12 @@ void unity_run_menu()
                 print_test_menu();
                 print_test_menu();
             }
             }
         }
         }
+        /*use '-' to show test history. Need to do it before UNITY_BEGIN cleanup history */
+        if (cmdline[0] == '-')
+        {
+            UNITY_END();
+            continue;
+        }
 
 
         UNITY_BEGIN();
         UNITY_BEGIN();