Skip to content
Snippets Groups Projects
Commit c09d0a9e authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Don't try and compare rdb_expected_diff on non-GNU systems as %p formatting can vary. (Re: #364)

For instance, `printf("%p\n", NULL);` prints "(nil)" with GLIBC and "0x0"
on MacOS.
parent a04c8296
No related branches found
No related tags found
No related merge requests found
Pipeline #645365 failed
......@@ -21,6 +21,7 @@ import re
import pytest
import subprocess
from diffoscope.tools import os_is_gnu
from diffoscope.comparators.gzip import GzipFile
from diffoscope.comparators.rdata import RdbFile
......@@ -71,6 +72,9 @@ def test_num_items_rdb(differences_rdb):
assert len(differences_rdb) == 1
@pytest.mark.skipif(
not os_is_gnu(), reason="requires GNU stdlib for consistent %p formatting"
)
@skip_unless_tools_exist("Rscript")
@skip_unless_tool_is_at_least("Rscript", rscript_version, "4.2.0")
def test_item_rdb(differences_rdb):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment