]> granicus.if.org Git - icu/commitdiff
ICU-22193 Make run-with-stubdata work with ubuntu-latest.
authorFredrik Roubert <roubert@google.com>
Thu, 15 Dec 2022 07:21:52 +0000 (16:21 +0900)
committerFredrik Roubert <fredrik@roubert.name>
Fri, 16 Dec 2022 01:06:32 +0000 (10:06 +0900)
It remains unknown when and why this changed, but nowadays the required
data files are to be found in a subdirectory named "build".

.github/workflows/icu_ci.yml
icu4c/source/test/cintltst/cintltst.c
icu4c/source/test/intltest/intltest.cpp

index ec43e9e4017898dafe8636d5cd58e7724ef8ae7b..712b1341c9173564f93c6374dda8f873c0113e33 100644 (file)
@@ -309,7 +309,7 @@ jobs:
 
   # Run ICU4C tests with stubdata.
   run-with-stubdata:
-    runs-on: ubuntu-20.04
+    runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
 
index 86e3b000a8dce87f0413efb384944091887d48c8..7afdb60af5fb24433d1ed4743fcbcd7fea731773 100644 (file)
@@ -380,7 +380,10 @@ const char *ctest_dataOutDir()
     */
 #if defined (U_TOPBUILDDIR)
     {
-        dataOutDir = U_TOPBUILDDIR "data"U_FILE_SEP_STRING"out"U_FILE_SEP_STRING;
+        dataOutDir = U_TOPBUILDDIR
+                "data" U_FILE_SEP_STRING
+                "out" U_FILE_SEP_STRING
+                "build" U_FILE_SEP_STRING;
     }
 #else
 
index 3686e7fd54710c8a6d69e73e2ae27cb948184798..d6ca2bf0c9fb24b915ed171a0d8f0be4887ff180 100644 (file)
@@ -441,7 +441,10 @@ void IntlTest::setICU_DATA() {
 
 #if defined (U_TOPBUILDDIR)
     {
-        static char env_string[] = U_TOPBUILDDIR "data" U_FILE_SEP_STRING "out" U_FILE_SEP_STRING;
+        static char env_string[] = U_TOPBUILDDIR
+                "data" U_FILE_SEP_STRING
+                "out" U_FILE_SEP_STRING
+                "build" U_FILE_SEP_STRING;
         u_setDataDirectory(env_string);
         return;
     }