avoid infinity loop when single utc execute
authorYeongjong Lee <yj34.lee@samsung.com>
Thu, 6 Sep 2018 08:48:10 +0000 (17:48 +0900)
committerYeongjong Lee <yj34.lee@samsung.com>
Thu, 6 Sep 2018 09:34:12 +0000 (18:34 +0900)
Test Plan:
./utc_elm test

Change-Id: If003178e49017b9d39699bf2985fae3cc5c69d0b

TC/ecore/utc_ecore.c
TC/edje/utc_edje.c
TC/eet/utc_eet.c
TC/eina/utc_eina.c
TC/eio/utc_eio.c
TC/elementary/utc_elm.c
TC/evas/utc_evas.c

index a687c21d4b4ed6da65299d59213553d235682af7..4e61054815e25991c13ceb717c8c9ce370b3ec26 100644 (file)
@@ -35,6 +35,8 @@ tcase_get(Suite *s, const char **argv)
                   return;
                }
           }
+        printf("%s is not found\n", argv[1]);
+        exit(1);
      }
 
    fp = fopen("ecore_exception_list", "r");
index 841155baf119c5e2b1b1d50707a87141325b1f37..29ded9e2735ab03f5302c351c601687f1e00da50 100644 (file)
@@ -33,6 +33,8 @@ tcase_get(Suite *s, const char **argv)
                   return;
                }
           }
+        printf("%s is not found\n", argv[1]);
+        exit(1);
      }
 
    fp = fopen("edje_exception_list", "r");
index 762a468902d20b3c4c792eada8798910108c06c5..51f65588e87af94b55249fa81820ce8f3f3d8149 100644 (file)
@@ -33,6 +33,8 @@ tcase_get(Suite *s, const char **argv)
                   return;
                }
           }
+        printf("%s is not found\n", argv[1]);
+        exit(1);
      }
 
    fp = fopen("eet_exception_list", "r");
index 58a1b036081fdc671551b2b78ec9cf87adb19ba2..2931e49a9c277bbcb47ffb36109a19798a58f0eb 100644 (file)
@@ -34,6 +34,8 @@ tcase_get(Suite *s, const char **argv)
                   return;
                }
           }
+        printf("%s is not found\n", argv[1]);
+        exit(1);
      }
 
    fp = fopen("eina_exception_list", "r");
index 4dcd78d3e53b37cb36285e30ad832240401f0187..ac93219427d919f0c349c2b56b25960860748fb8 100644 (file)
@@ -33,6 +33,8 @@ tcase_get(Suite *s, const char **argv)
                   return;
                }
           }
+        printf("%s is not found\n", argv[1]);
+        exit(1);
      }
 
    fp = fopen("eio_exception_list", "r");
index 5f6c5681cb15f15917a9a7948f09546132c00e71..d29aeacf8407cc41c48bb77603c8e944d484aa3c 100644 (file)
@@ -29,7 +29,7 @@ tcase_get(Suite *s, const char **argv)
 
    if (argv[1])
      {
-        for (i = 0;; i++)
+        for (i = 0; utc[i].test_case; i++)
           {
              if (!strcmp(argv[1], utc[i].test_case))
                {
@@ -37,6 +37,8 @@ tcase_get(Suite *s, const char **argv)
                   return;
                }
           }
+        printf("%s is not found\n", argv[1]);
+        exit(1);
      }
 
    fp = fopen("elm_exception_list", "r");
index e065ea91bb2bd7e56898ecc8fdfbe6d675c1a62f..fdcf202bbc8efe734afdd74a002f969a58987a2f 100644 (file)
@@ -33,6 +33,8 @@ tcase_get(Suite *s, const char **argv)
                   return;
                }
           }
+        printf("%s is not found\n", argv[1]);
+        exit(1);
      }
 
    fp = fopen("evas_exception_list", "r");