// Enable capture and check that means we have a generator.
EXPECT_THAT_ERROR(
- reproducer.SetCapture(FileSpec("/bogus/path", FileSpec::Style::posix)),
+ reproducer.SetCapture(FileSpec("//bogus/path", FileSpec::Style::posix)),
Succeeded());
EXPECT_NE(nullptr, reproducer.GetGenerator());
- EXPECT_EQ(FileSpec("/bogus/path", FileSpec::Style::posix),
+ EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix),
reproducer.GetGenerator()->GetRoot());
- EXPECT_EQ(FileSpec("/bogus/path", FileSpec::Style::posix),
+ EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix),
reproducer.GetReproducerPath());
// Ensure that we cannot enable replay.
EXPECT_THAT_ERROR(
- reproducer.SetReplay(FileSpec("/bogus/path", FileSpec::Style::posix)),
+ reproducer.SetReplay(FileSpec("//bogus/path", FileSpec::Style::posix)),
Failed());
EXPECT_EQ(nullptr, reproducer.GetLoader());
// Expected to fail because we can't load the index.
EXPECT_THAT_ERROR(
- reproducer.SetReplay(FileSpec("/bogus/path", FileSpec::Style::posix)),
+ reproducer.SetReplay(FileSpec("//bogus/path", FileSpec::Style::posix)),
Failed());
// However the loader should still be set, which we check here.
EXPECT_NE(nullptr, reproducer.GetLoader());
// Make sure the bogus path is correctly set.
- EXPECT_EQ(FileSpec("/bogus/path", FileSpec::Style::posix),
+ EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix),
reproducer.GetLoader()->GetRoot());
- EXPECT_EQ(FileSpec("/bogus/path", FileSpec::Style::posix),
+ EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix),
reproducer.GetReproducerPath());
// Ensure that we cannot enable replay.
EXPECT_THAT_ERROR(
- reproducer.SetCapture(FileSpec("/bogus/path", FileSpec::Style::posix)),
+ reproducer.SetCapture(FileSpec("//bogus/path", FileSpec::Style::posix)),
Failed());
EXPECT_EQ(nullptr, reproducer.GetGenerator());
}
DummyReproducer reproducer;
EXPECT_THAT_ERROR(
- reproducer.SetCapture(FileSpec("/bogus/path", FileSpec::Style::posix)),
+ reproducer.SetCapture(FileSpec("//bogus/path", FileSpec::Style::posix)),
Succeeded());
auto &generator = *reproducer.GetGenerator();
auto *provider = generator.Create<DummyProvider>();
EXPECT_NE(nullptr, provider);
- EXPECT_EQ(FileSpec("/bogus/path", FileSpec::Style::posix),
+ EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix),
provider->GetRoot());
}
DummyReproducer reproducer;
EXPECT_THAT_ERROR(
- reproducer.SetCapture(FileSpec("/bogus/path", FileSpec::Style::posix)),
+ reproducer.SetCapture(FileSpec("//bogus/path", FileSpec::Style::posix)),
Succeeded());
auto &generator = *reproducer.GetGenerator();
DummyReproducer reproducer;
EXPECT_THAT_ERROR(
- reproducer.SetCapture(FileSpec("/bogus/path", FileSpec::Style::posix)),
+ reproducer.SetCapture(FileSpec("//bogus/path", FileSpec::Style::posix)),
Succeeded());
auto &generator = *reproducer.GetGenerator();
auto &provider = generator.GetOrCreate<DummyProvider>();
- EXPECT_EQ(FileSpec("/bogus/path", FileSpec::Style::posix),
+ EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix),
provider.GetRoot());
auto &provider_alt = generator.GetOrCreate<DummyProvider>();