func (*kernelVersionSuite) TestMacOSXSeriesFromKernelVersionError(c *gc.C) { // We suppress the actual error in favor of returning "unknown", but we // do log the error c.Check(version.MacOSXSeriesFromKernelVersion(sysctlError), gc.Equals, "unknown") c.Check(c.GetTestLog(), gc.Matches, ".* juju.version unable to determine OS version: no such syscall\n") }
func (*kernelVersionSuite) TestMacOSXSeriesFromKernelVersion(c *gc.C) { c.Check(version.MacOSXSeriesFromKernelVersion(sysctlMacOS10dot9dot2), gc.Equals, "mavericks") }