summaryrefslogtreecommitdiff
path: root/libicuuc/tests/basic
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-02-15 03:27:02 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-02-15 03:27:02 +0300
commit29827fde524a42fe343b32ea3c2f543e9ed3ee55 (patch)
treee0c47c289a4f9f16793d7338d27bba92dc3f4118 /libicuuc/tests/basic
parent10887109a7f8ebd1b0ac1fb18dc59c94d1d1307b (diff)
Release version 65.1.0+1v65.1.0+1
Drop copyright notice from source code Convert libicuuc test from C to C++ so it can link library statically Drop linking -lpthread and -lm for MinGW GCC
Diffstat (limited to 'libicuuc/tests/basic')
-rw-r--r--libicuuc/tests/basic/buildfile3
-rw-r--r--libicuuc/tests/basic/driver.cpp (renamed from libicuuc/tests/basic/driver.c)37
-rw-r--r--libicuuc/tests/basic/testscript1
3 files changed, 19 insertions, 22 deletions
diff --git a/libicuuc/tests/basic/buildfile b/libicuuc/tests/basic/buildfile
index 6934b21..2189aa6 100644
--- a/libicuuc/tests/basic/buildfile
+++ b/libicuuc/tests/basic/buildfile
@@ -1,7 +1,6 @@
# file : tests/basic/buildfile
-# copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC
# license : Unicode License; see accompanying LICENSE file
import libs = libicuuc%lib{icuuc}
-exe{driver}: {h c}{*} $libs testscript
+exe{driver}: {hxx cxx}{*} $libs testscript
diff --git a/libicuuc/tests/basic/driver.c b/libicuuc/tests/basic/driver.cpp
index 92c2b7c..a273133 100644
--- a/libicuuc/tests/basic/driver.c
+++ b/libicuuc/tests/basic/driver.cpp
@@ -1,7 +1,6 @@
-/* file : tests/basic/driver.c
- * copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC
- * license : Unicode License; see accompanying LICENSE file
- */
+// file : tests/basic/driver.cpp
+// license : Unicode License; see accompanying LICENSE file
+
#include <stdio.h>
#include <assert.h>
@@ -11,19 +10,19 @@
#include <unicode/utypes.h>
#include <unicode/uversion.h>
-/* Usage: argv[0]
- *
- * Test some basic libicuuc functionality:
- *
- * - query and print the library version
- * - set, query and print the default locale
- * - load a portion of the bundled data and print its format id/version
- */
+// Usage: argv[0]
+//
+// Test some basic libicuuc functionality:
+//
+// - query and print the library version
+// - set, query and print the default locale
+// - load a portion of the bundled data and print its format id/version
+
int
main ()
{
- /* Print version.
- */
+ // Print version.
+ //
UVersionInfo v;
u_getVersion (v);
@@ -32,8 +31,8 @@ main ()
printf ("version: %s\n", s);
- /* Change and print the current locale.
- */
+ // Change and print the current locale.
+ //
UErrorCode e = U_ZERO_ERROR;
uloc_setDefault ("en_GB", &e);
@@ -47,9 +46,9 @@ main ()
printf ("locale: %s\n", uloc_getDefault ());
- /* Check that data is properly loaded from the libicudata's data bundle and
- * print its format id/version.
- */
+ // Check that data is properly loaded from the libicudata's data bundle and
+ // print its format id/version.
+ //
UDataMemory* d = udata_open (NULL, "res", "en_US", &e);
if (U_FAILURE (e))
diff --git a/libicuuc/tests/basic/testscript b/libicuuc/tests/basic/testscript
index 72fbe00..2578551 100644
--- a/libicuuc/tests/basic/testscript
+++ b/libicuuc/tests/basic/testscript
@@ -1,5 +1,4 @@
# file : tests/basic/testscript
-# copyright : Copyright (c) 2016-2019 Code Synthesis Ltd
# license : Unicode License; see accompanying LICENSE file
$* >>~%EOO%