From 76e39dd442cfeea47d4f15fcdeb859cb3d374bae Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 16 Aug 2018 23:45:22 -0400 Subject: [PATCH] Fix the regex test to work on macOS --- .../org/scalanative/bindgen/bindings/tests/RegexSpec.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/posix/src/test/scala/org/scalanative/bindgen/bindings/tests/RegexSpec.scala b/bindings/posix/src/test/scala/org/scalanative/bindgen/bindings/tests/RegexSpec.scala index 4be4a56..24d4537 100644 --- a/bindings/posix/src/test/scala/org/scalanative/bindgen/bindings/tests/RegexSpec.scala +++ b/bindings/posix/src/test/scala/org/scalanative/bindgen/bindings/tests/RegexSpec.scala @@ -12,7 +12,7 @@ class RegexSpec extends FunSpec { val reg = stackalloc[regex_t] val compResult = - regcomp(reg, c"Scala \\(\\(J\\(VM\\|S\\)\\)\\|Native\\)", 0) + regcomp(reg, c"Scala \(J\(S\|VM\)\|Native\)", defines.REG_EXTENDED) assert(compResult == 0) assert(regexec(reg, c"Scala JVM", 0, null, 0) == 0)