Two test fixes for meson.
authorDov Grobgeld <dov.grobgeld@gmail.com>
Sat, 10 Mar 2018 16:38:36 +0000 (18:38 +0200)
committerDov Grobgeld <dov.grobgeld@gmail.com>
Sat, 10 Mar 2018 16:38:36 +0000 (18:38 +0200)
* Added the isolate test to the test suite.
* Fixed CR/LF problem in test-runner.py on Windows when working
  out of git. (Reference files contain CRLF).

test/meson.build
test/test-runner.py

index 9f7e1a7014195ade7ef572c45309c5663030cf31..45bd862d80cbff0898e78620b4835ccbf20a503e 100644 (file)
@@ -1,6 +1,7 @@
 tests = [
   ['CapRTL', 'explicit'],
   ['CapRTL', 'implicit'],
+  ['CapRTL', 'isolate'],
   ['ISO8859-8', 'hebrew'],
   ['UTF-8', 'persian'],
   ['UTF-8', 'reordernsm'],
index 9b0fa81da3782f0d1eedba3cc057aae8f36f2c77..1ea9df80580a4f30e0ea3877b8dd235f12e1f901 100755 (executable)
@@ -23,9 +23,10 @@ if os.name == 'nt':
 
 try:
   output = subprocess.check_output([test_exe, '--test', '--charset', charset, input_file])
+  ref_data = open(reference_file, "rb").read()
   if os.name == 'nt':
     output = output.replace(b'\r\n', b'\n')
-  ref_data = open(reference_file, "rb").read()
+    ref_data = ref_data.replace(b'\r\n', b'\n') 
   if output != ref_data:
     print('Output:\n', output)
     print('Reference file:\n', ref_data)